home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.6 KB | 59 lines | [TEXT/MPS ] |
- // UDocumentSkeleton.h
- // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved.
-
- #ifndef __UDOCUMENTSKELETON__
- #define __UDOCUMENTSKELETON__
-
- #ifndef __UFILEBASEDDOCUMENT__
- #include "UFileBasedDocument.h"
- #endif
-
- //----------------------------------------------------------------------------------------
- // Constants
- //----------------------------------------------------------------------------------------
-
- // Commands
- const CommandNumber cCommandHandledByDocument = 401;
-
- // Files
- const OSType kFileType = 'SF01'; // File-type code used for document files
-
- //----------------------------------------------------------------------------------------
- // TDocumentSkeleton
- //----------------------------------------------------------------------------------------
-
- class TDocumentSkeleton: public TFileBasedDocument
- {
- MA_DECLARE_CLASS;
-
- public:
- TDocumentSkeleton();
- // Constructor
-
- virtual ~TDocumentSkeleton();
- // Destructor
-
- virtual void IDocumentSkeleton(TFile* itsFile, OSType itsCreator);
- virtual void DoInitialState(); // Override
- virtual void FreeData(); // Override
-
- // Views
- virtual void DoMakeViews(Boolean forPrinting); // Override
-
- // Commands
- virtual void DoSetupMenus(); // Override
- virtual void DoMenuCommand(CommandNumber aCommandNumber); // Override
-
- // Saving and Restoring
- virtual void DoNeedDiskSpace(TFile* itsFile,
- long& dataForkBytes,
- long& rsrcForkBytes); // Override
- virtual void DoRead(TFile* aFile,
- Boolean forPrinting); // Override
- virtual void DoWrite(TFile* aFile,
- Boolean makingCopy); // Override
-
- };
-
- #endif
-